﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.UIElements;

public class LevelContent : MonoBehaviour
{
    public int id;
    public Transform initLevelTrans;
    public Map level;
    private Text text;

    private void Awake()
    {
        initLevelTrans = transform.Find("levelContent").GetComponent<Transform>();
        text=transform.Find("text").GetComponent<Text>();
    }

    public void setLevel(int id)
    {
        this.id = id;
        text.text ="关卡："+id;
    }
}
